<?php
namespace modules\game\caches;

use caches\BaseCache;

class PokerCache extends BaseCache{
	const USER_POKER = 'user_poker_%s';

	public static function setUserPokerStatus($user,$poker){
		$key = self::gen(self::USER_POKER,$user);
		return self::setex($key,100,$poker);
	}
	public static function getUserPokerStatus($user){
		$key = self::gen(self::USER_POKER,$user);
		return self::get($key);
	}
}